label: Fix mnemonic zero
authorMatthias Clasen <mclasen@redhat.com>
Sun, 31 May 2020 01:40:20 +0000 (21:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 May 2020 01:42:54 +0000 (21:42 -0400)
We were confusing '\0' and '0' when parsing the label
for mnemonics.

Fixes: #2805
gtk/gtklabel.c

index a66581cb48e314e1b3f47e73de84f84e9fae736d..60c9d18d94c83c0a233ef5ee46653bed7a687868 100644 (file)
@@ -2239,7 +2239,7 @@ extract_mnemonic_keyval (const char      *text,
       p = g_utf8_next_char (p);
       c = g_utf8_get_char (p);
 
-      if (c != '_' && c != '0')
+      if (c != '_' && c != '\0')
         {
           const gsize byte_index = p - text - 1; /* Of the _ */